﻿<UserControl x:Class="Shelfmanager.BookCollectorView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:loc="clr-namespace:Shelfmanager"
             mc:Ignorable="d" 
             d:DesignHeight="420" d:DesignWidth="600">
    <Grid Margin="8">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Border Background="#c0d0e0" Margin="4">
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
            <Button Margin="2" Width="56" Height="56" Command="{Binding AddBookCommand}">
                <Image Source="Images/newBook.png"/>
            </Button>
            <Button Margin="2" Width="56" Height="56">
                <Image Source="Images/editBook.png"/>
            </Button>
            <Button Margin="2" Width="56" Height="56">
                <Image Source="Images/SearchBook.png"/>
            </Button>
            <Button Margin="2" Width="56" Height="56" Command="{Binding SaveCommand}">
                <Image Source="Images/save.png" />
            </Button>
        </StackPanel>
        </Border>
        <loc:BookView Grid.Row="1" DataContext="{Binding Book}"/>

    </Grid>
</UserControl>
